#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  __init__.py
#       Author @  Huoty
#  Create date @  2015-12-15 14:54:52
#  Description @
# *************************************************************

from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy(app)
#cache = Cache(app)

from kwsite.home.views import page
app.register_blueprint(page, url_prefix="/")
from kwsite.admin.views import admin
app.register_blueprint(admin, url_prefix="/admin")
